<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>业务人员薪资表页面</title>
    <script src="js/echarts.js"></script>
</head>
<body>
<h2>GLS国际物流—业务人员薪资报表</h2>
<div id="main" style="width: 1000px;height:700px;text-align: center"></div>

<script type="text/javascript">
    var myChart = echarts.init(document.getElementById('main'));


    option = {
        title: {
            text: '堆叠区域图'
        },
        tooltip : {
            trigger: 'axis',
            axisPointer: {
                type: 'cross',
                label: {
                    backgroundColor: '#6a7985'
                }
            }
        },
        legend: {
            data:['张三','李四','王五','赵六','陶七']
        },
        toolbox: {
            feature: {
                saveAsImage: {}
            }
        },
        grid: {
            left: '3%',
            right: '4%',
            bottom: '3%',
            containLabel: true
        },
        xAxis : [
            {
                type : 'category',
                boundaryGap : false,
                data : ['一月', '二月', '三月', '四月', '五月', '六月', '七月','八月', '九月', '十月', '十一月', '十二月']
            }
        ],
        yAxis : [
            {
                type : 'value'
            }
        ],
        series : [
            {
                name:'张三',
                type:'line',
                stack: '总量',
                areaStyle: {},
                data:[8200, 9320, 9010, 9340, 12900, 13300, 13200,10000,8970,11900,9800,17890]
            },
            {
                name:'李四',
                type:'line',
                stack: '总量',
                areaStyle: {},
                data:[8800, 9320, 7010, 8340, 11900, 13200, 7200,8000,8970,12900,9500,19890]
            },
            {
                name:'王五',
                type:'line',
                stack: '总量',
                areaStyle: {},
                data:[7200, 9320, 9810, 9340, 9900, 7300, 8200,11000,8970,10900,9800,16890]
            },
            {
                name:'赵六',
                type:'line',
                stack: '总量',
                areaStyle: {normal: {}},
                data:[8700, 14320, 7010, 8340, 12900, 10300, 15200,8000,8970,12900,9800,15890]
            },
            {
                name:'陶七',
                type:'line',
                stack: '总量',
                areaStyle: {normal: {}},
                data:[9700, 12320, 9010, 15340, 12900, 8300, 15200,8700,7070,10900,7900,17890],
                label: {
                    normal: {
                        show: true,
                        position: 'top'
                    }
                },

            }
        ]
    };

    /*option = {
        xAxis: {
            type: 'category',
            data: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul','Aug', 'Sep', 'Oct', 'Nov', 'Dec']
        },
        yAxis: {
            type: 'value'
        },
        series: [{
            data: [8200, 9320, 9010, 9340, 12900, 13300, 13200,10000,8970,11900,9800,17890],
            type: 'bar'
        }]
    };*/


    /*var option = {
        xAxis: {
            type: 'category',
            data: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul','Aug', 'Sep', 'Oct', 'Nov', 'Dec']
        },
        yAxis: {
            type: 'value'
        },
        series: [{
            data: [8200, 9320, 9010, 9340, 12900, 13300, 13200,10000,8970,11900,9800,17890],
            type: 'line'
        }]
    };*/

    // 使用刚指定的配置项和数据显示图表。
    myChart.setOption(option);
</script>
</body>
</html>